.box {
  width: 200px;
  height: 200px;
  border: 1px solid black;
}
.box p {
  color: blue;
  width: 100px;
  height: 100px;
  border: 1px solid red;
}
.box:hover {
  background: yellow;
}
